#!/usr/bin/env python
#
# Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
from google.appengine.ext import webapp
from google.appengine.ext.webapp import util

from google.appengine.ext import db
dbnamelist={}
dbnamelist['month']='dbmonth'
dbnamelist['week']='dbweek'
dbnamelist['day']='dbday'
#dbdatelist={}
#dbdatelist['month']='dbmonthlist'
#dbdatelist['week']='dbweeklist'
#dbdatelist['day']='dbdaylist'
class dbmonth(db.Model):
    date=db.IntegerProperty()
    d20num=db.IntegerProperty()
    d20list=db.StringListProperty()
    d60num=db.IntegerProperty()
    d60list=db.StringListProperty()
    d120num=db.IntegerProperty()
    d120list=db.StringListProperty()
    dxgnum=db.IntegerProperty()
    dxglist=db.StringListProperty()
    dxdnum=db.IntegerProperty()
    dxdlist=db.StringListProperty()
class dbweek(db.Model):
    date=db.IntegerProperty()
    d20num=db.IntegerProperty()
    d20list=db.StringListProperty()
    d60num=db.IntegerProperty()
    d60list=db.StringListProperty()
    d120num=db.IntegerProperty()
    d120list=db.StringListProperty()
    dxgnum=db.IntegerProperty()
    dxglist=db.StringListProperty()
    dxdnum=db.IntegerProperty()
    dxdlist=db.StringListProperty()
class dbday(db.Model):
    date=db.IntegerProperty()
    d20num=db.IntegerProperty()
    d20list=db.StringListProperty()
    d60num=db.IntegerProperty()
    d60list=db.StringListProperty()
    d120num=db.IntegerProperty()
    d120list=db.StringListProperty()
    dxgnum=db.IntegerProperty()
    dxglist=db.StringListProperty()
    dxdnum=db.IntegerProperty()
    dxdlist=db.StringListProperty()
    
class dbstocklist(db.Model):
    code=db.StringProperty()
    dayupdate=db.IntegerProperty()
    weekupdate=db.IntegerProperty()
    monthupdate=db.IntegerProperty()

if __name__ == '__main__':
    pass
